package com.spring.datasource.controller;

import com.alibaba.fastjson.JSON;
import com.spring.datasource.dao.MCodeDao;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class EncryptController {
	Logger log = LoggerFactory.getLogger(EncryptController.class);
//	@Autowired
//	IPersonDao personDao;
	@Autowired
	MCodeDao mCodeDao;

	@RequestMapping("/test")
	public String test(){
		log.info(JSON.toJSONString(mCodeDao.getJobCodeMaster()));
		log.info(JSON.toJSONString(mCodeDao.getSmsCodeMaster()));
		return "数据库连接密码：";
	}
}
